package com.kmproject.haifu.mvp.model.entity.resbean;

import java.io.Serializable;

public class SelectAddressMapBean implements Serializable {
    private int type = 0;//0附近地址  1 google返回的地址
    String title;
    String detileAddress;
    String lat = "0";
    String lgt = "0";

    public SelectAddressMapBean() {
    }

    public SelectAddressMapBean(String title, String detileAddress, String lat, String lgt) {
        this.title = title;
        this.detileAddress = detileAddress;
        this.lat = lat;
        this.lgt = lgt;
    }

    public SelectAddressMapBean(int type, String title, String detileAddress, String lat, String lgt) {
        this.type = type;
        this.title = title;
        this.detileAddress = detileAddress;
        this.lat = lat;
        this.lgt = lgt;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getDetileAddress() {
        return detileAddress;
    }

    public void setDetileAddress(String detileAddress) {
        this.detileAddress = detileAddress;
    }

    public String getLat() {
        return lat;
    }

    public void setLat(String lat) {
        this.lat = lat;
    }

    public String getLgt() {
        return lgt;
    }

    public void setLgt(String lgt) {
        this.lgt = lgt;
    }

    public double getLat4Double() {
        if (lat != null) {
            return Double.parseDouble(lat);
        } else {
            return 0d;
        }
    }

    public double getLgt4Double() {
        if (lgt != null) {
            return Double.parseDouble(lgt);
        } else {
            return 0d;
        }
    }
}
